package com.dews.information.domain.dto;

import com.dews.common.utils.valid.AddGroup;
import com.dews.common.utils.valid.UpdateGroup;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

import javax.validation.constraints.NotNull;

/**
 * 班级信息对象Vo
 * 
 * @author qingfeng
 * @date 2025-01-14
 */
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
@ToString
public class ClazzInfoDTO {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("主键ID")
    @NotNull(message = "主键ID不能为空", groups = {UpdateGroup.class})
    private Integer id;

    @ApiModelProperty("专业id")
    @NotNull(message = "专业id不能为空", groups = {AddGroup.class, UpdateGroup.class})
    private Integer subjectId;

    @ApiModelProperty("班级名称")
    @NotNull(message = "班级名称不能为空", groups = {AddGroup.class, UpdateGroup.class})
    private String clazzName;

    @ApiModelProperty("班级代码")
    @NotNull(message = "班级代码不能为空", groups = {AddGroup.class, UpdateGroup.class})
    private String clazzCode;

    @ApiModelProperty("年级")
    @NotNull(message = "年级不能为空", groups = {AddGroup.class, UpdateGroup.class})
    private String grade;

    @ApiModelProperty("学制")
    @NotNull(message = "学制不能为空", groups = {AddGroup.class, UpdateGroup.class})
    private Integer educationalSystem;

    @ApiModelProperty("班级描述")
    private String clazzDescribe;

    @ApiModelProperty("学位类型")
    @NotNull(message = "学位类型不能为空", groups = {AddGroup.class, UpdateGroup.class})
    private String clazzType;
}
